import request from '/@/utils/request';

export function readAllDocument(params: any) {
  return request({
    url: 'mgr/documents',
    params,
  });
}

/**
 * 获取回填列表
 * @param area_ids
 * @returns
 */
export function passDocument(id: any) {
  return request({
    url: `mgr/documents/${id}/pass`,
    method: 'post'
  });
}

export function rejectDocument(id: any) {
  return request({
    url: `mgr/documents/${id}/reject`,
    method: 'post',
  });
}

export function deleteDocument(id: any) {
  return request({
    url: `mgr/documents/${id}`,
    method: 'delete',
  });
}
